package cn.hjm.org.service;

import cn.hjm.basic.util.PageList;
import cn.hjm.org.domain.Department;
import cn.hjm.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //新增部门
    void add(Department department);
    //修改一条部门
    void update(Department department);
    //删除
    void remove(Long id);
    //根据id查询单条数据
    Department findById(Long id);
    //查询所有的部门数据
    List<Department> findAll();

    /**
     * 分页+高级查询
     */
    PageList<Department> Querypage(DepartmentQuery departmentQuery);
}
